Page({

  /**
   * 页面的初始数据
   */
  data: {
    zh: '',
    schema:[
    ],
    formData:{
    },
    title: '',
    result: '',
    remark: '',
    webUrl: '',
    apiName: '',
  },
  onUnload() {
  },
  onLoad(options) {
    console.log('options', options)
    wx.setNavigationBarTitle({
      title: options.title,
    })
    
    this.setData({
      title: options.title,
      zh:options.zh,
      remark: options.remark,
      webUrl: options.webUrl
    })
  },
  getFormData(e) {
    console.log('formdata==', e.detail.formData);
    this.setData({
      formData: e.detail.formData
    })
  },
  navigatorTo1() {
    wx.navigateTo({
      url: `/packageComponent/pages/nav/navigator/navigator?target=self&title=${this.data.title}&zh=${this.data.zh}&remark=${this.data.remark}&webUrl=${this.data.webUrl}`,
    })
  },
  navigatorTo2() {
    wx.navigateTo({
      url: `/packageComponent/pages/nav/navigator/navigator?target=miniProgram&title=${this.data.title}&zh=${this.data.zh}&remark=${this.data.remark}&webUrl=${this.data.webUrl}`,
    })
  }
})